<!--# layout("/common/layout.html",{"jsBase":"/js/cms/buyHouseSubsidies/"}){ -->

<form class="layui-form " id="updateForm">
    <!--# include("include_edit.html"){} -->
    <input type="hidden" id="Startdate" value="${Startdate, 'yyyy-MM-dd'}">
    <div class="layui-row">
        <div class="layui-form-item" style="text-align: center;">
            <button class="layui-btn layui-btn-danger" type="button" id="updateButton" lay-submit lay-filter="form">
                ${text!"保存"}
            </button>
            <button class="layui-btn" type="button" id="updateButton-declare" lay-submit lay-filter="form">保存并申报</button>
            <button class="layui-btn" type="button" id="updateButton-cancel">取消</button>
        </div>
    </div>
</form>
<!--#} -->
<script>

    layui.use('laydate', function(){
        var laydate = layui.laydate;
        var endDate= laydate.render({
            elem: '#advanceLandingTime',//选择器结束时间
            type: 'date',
            min:$("#Startdate").val(),//设置min默认最小值
        });
    });

    layui.use(['edit'], function () {
        var buyHouseSubsidiesEdit = layui.edit
        buyHouseSubsidiesEdit.init();

        var form = layui.form;
        form.on('select(declareYear)', function (data) {
            $("#declareMoney").val(60000);
        });

        $("#declareYear").val("${buyHouseSubsidies.declareYear}");
        form.render("select");
    });
</script>
